<extend name="Public/base" />
<block name="content">
<div id="content" style="min-width:800px;">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		
		<a class="btn btn-info" href="{:U('Auth/merchantAuth')}">新增</a>
		<button class="confirm btn btn-danger ajax-post" url="{:U('merchantStatus?method=delete')}" target-form="ids">删 除</button>
		<div class="search-form fr cf">
			<div class="sleft">
				<span class="control-group">
					<select class="form-control" style="width: 200px;" name="member_id">
						<option value=0>选择员工</option>
						<volist name="member" id="vo">
							<option value='{$vo.uid}'>{$vo.login_name|strip_tags}</option>
						</volist>
					</select>
				</span>
				<button class="btn btn-info" id="search_button" url="{:U('Auth/merchant')}"><i class="icon-search icon-white"></i></button>
			</div>
		</div>
		
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content">
						<notempty name="_list">
							<table class="table table-bordered table-striped with-check">
								<thead>
									<tr>
										<th width="5%"><input type="checkbox" /></th>
										<th width="45%" nowrap="nowrap">员工</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<volist name="_list" id="vo">
										<tr>
											<td class="taskStatus"><input type="checkbox" value="{$vo.member_id}" name="id[]" class="ids"/></td>
											<td class="taskStatus">{$vo.member_id|getUserName}</td>
											<td class="taskStatus">
												<a href="{:U('Auth/merchantAuth',array('id'=>$vo['member_id']))}"><i class="icon-edit"></i> 编辑</a>　
												<a href="{:U('Auth/merchantStatus',array('id'=>$vo['member_id'],'method'=>'delete'))}" class="ajax-get confirm"><i class="icon-remove"></i> 删除</a>
											</td>
										</tr>
									</volist>
								</tbody>
							</table>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
						<else/>
							<center>请根据搜索条件进行查询</center>
						</notempty>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	set_value("member_id",'{:I('member_id')}')
});
//导航高亮
highlight_subnav("{:U('Auth/merchant')}");
</script>
</block>